import request from '@/utils/request'

export function listtakeoutHead(query) {
  return request({
    url: '/takeoutHead/list',
    method: 'get',
    params: query
  })
}

export function createtakeoutHead(data) {
  return request({
    url: '/takeoutHead/create',
    method: 'post',
    data
  })
}

export function readtakeoutHead(data) {
  return request({
    url: '/takeoutHead/get/' + data.id,
    method: 'get'
  })
}

export function updatetakeoutHead(data) {
  return request({
    url: '/takeoutHead/update',
    method: 'post',
    data
  })
}

export function deletetakeoutHead(data) {
  return request({
    url: '/takeoutHead/delete/' + data.fbillno,
    method: 'delete'
  })
}
